<?
    session_start();
    class SessionManager {
        const SESSION_TYPE = 'session';
        
        static function Set($var,$val) {
            if (!$_SESSION[$var]) session_register($var);
            $_SESSION[$var] = $val;
        }
        static function Get($var) { return $_SESSION[$var]; }
        static function EndSession() {
            session_regenerate_id();
            session_destroy();
            
            echo "<pre>" . print_r($_SESSION,true) . "</pre>";
        }
    }
?>